<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  <meta name="description" content="">
  <meta name="author" content="ThemeBucket">
  <link rel="shortcut icon" href="#" type="image/png">

  <title>Dynamic Table</title>

  <!--dynamic table-->
  <link href="js/advanced-datatable/css/demo_page.css" rel="stylesheet" />
  <link href="js/advanced-datatable/css/demo_table.css" rel="stylesheet" />
  <link rel="stylesheet" href="js/data-tables/DT_bootstrap.css" />

  <link href="css/style.css" rel="stylesheet">
  <link href="css/style-responsive.css" rel="stylesheet">

  <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>
  <script src="js/html5shiv.js"></script>
  <script src="js/respond.min.js"></script>
  <![endif]-->
</head>

<body class="sticky-header">

<section>
  <!-- left side start-->
  <div class="left-side sticky-left-side">

    <!--logo and iconic logo start-->
    <div class="logo">
      <a href="index.html"><img src="images/logo.png" alt=""></a>
    </div>

    <div class="logo-icon text-center">
      <a href="index.html"><img src="images/logo_icon.png" alt=""></a>
    </div>
    <!--logo and iconic logo end-->


    <div class="left-side-inner">

      <!-- visible to small devices only -->
      <div class="visible-xs hidden-sm hidden-md hidden-lg">
        <div class="media logged-user">
          <img alt="" src="images/photos/user-avatar.png" class="media-object">
          <div class="media-body">
            <h4><a href="#">John Doe</a></h4>
            <span>"Hello There..."</span>
          </div>
        </div>

        <h5 class="left-nav-title">Account Information</h5>
        <ul class="nav nav-pills nav-stacked custom-nav">
          <li><a href="#"><i class="fa fa-user"></i> <span>Profile</span></a></li>
          <li><a href="#"><i class="fa fa-cog"></i> <span>Settings</span></a></li>
          <li><a href="#"><i class="fa fa-sign-out"></i> <span>Sign Out</span></a></li>
        </ul>
      </div>

      <!--sidebar nav start-->
      <ul class="nav nav-pills nav-stacked custom-nav">
        <li shiro:hasRole="systemadmin">
          <a th:class="${active=='/index.html'?'menu-list active':'menu-list'}" th:href="@{/index.html}">
            <i class="fa fa-home"></i>
            <span>OA系统管理</span>
          </a>
        </li>

        <li shiro:hasAnyRoles="admin,user" class="menu-list"><a href="#"><i class="fa fa-th-list"></i> <span>岗位管理</span></a>
          <ul class="sub-menu-list">
            <li shiro:hasAnyRoles="user,admin"><a th:href="@{/post_table}">岗位列表</a></li>
            <li shiro:hasAnyRoles="admin"><a th:href="@{/post_add}"> 岗位添加</a></li>
          </ul>
        </li>
        <li shiro:hasAnyRoles="admin,user" class="menu-list"><a href="#"><i class="fa fa-th-list"></i> <span>部门管理</span></a>
          <ul class="sub-menu-list">
            <li shiro:hasAnyRoles="user,admin"><a th:href="@{/department_table}">部门列表</a></li>
            <li shiro:hasAnyRoles="admin"><a th:href="@{/department_add}">部门添加</a></li>
          </ul>
        </li>
        <li shiro:hasAnyRoles="admin,user" class="menu-list"><a href="#"><i class="fa fa-th-list"></i> <span>用户管理</span></a>
          <ul class="sub-menu-list">
            <li shiro:hasAnyRoles="user,admin"><a th:href="@{/user_table}">用户列表</a></li>
            <li shiro:hasAnyRoles="admin"><a th:href="@{/user_add}">用户添加</a></li>
          </ul>
        </li>
        <li><a th:href="@{/login}"><i class="fa fa-sign-in"></i> <span>登录页面</span></a></li>

      </ul>
      <!--sidebar nav end-->

    </div>
  </div>
  <!-- left side end-->

  <!-- main content start-->
  <div class="main-content" >

    <!-- header section start-->
    <div class="header-section">

      <form th:action="@{/useradd}" method="post">
        用户名： <input type="text" name="username"><br>
        登录名：<input type="text" name="loginname"><br>
        密码 ：<input type="text" name="password"><br>
        状态：<input type="text" name="status"><br>

        <input type="submit" value="添加">
      </form>

    </div>
  </div>
  <!-- main content end-->
</section>

<!-- Placed js at the end of the document so the pages load faster -->
<script src="js/jquery-1.10.2.min.js"></script>
<script src="js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="js/jquery-migrate-1.2.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/modernizr.min.js"></script>
<script src="js/jquery.nicescroll.js"></script>

<!--dynamic table-->
<script type="text/javascript" language="javascript" src="js/advanced-datatable/js/jquery.dataTables.js"></script>
<script type="text/javascript" src="js/data-tables/DT_bootstrap.js"></script>
<!--dynamic table initialization -->
<script src="js/dynamic_table_init.js"></script>

<!--common scripts for all pages-->
<script src="js/scripts.js"></script>

</body>
</html>
